package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;

import java.util.Set;

public interface PermissionDao {
    public Set<Permission> findByRoleId(Integer roleId);

    Page<Permission> findByCondition(String queryString);

    //增加权限
    public void add(Permission permission);

    //通过id查询权限
    public Permission findById(Integer id);

    //编辑权限
    public void edit(Permission permission);
    //删除权限
    public void deleteById(Integer id);
    //通过权限名查询权限
    public Permission findByName(String name);
    //通过权限关键词查询权限
    public Permission findByKeyword(String keyword);


}
